module cross_product (
	a,		// number a
	b,		// number b,
	result	// result of the product
	);
	
input clk;
input rst;

input signed [7:0] a;
input signed [7:0] b;

output reg [15:0] result;

reg [2:0] i;

always @ (a or b)
begin
	for (i = 0; i < 8; i = i +1) begin
	begin
		ai <= a[i];
		bi <= b[i];
		accumulator <= accumulator + ai * bi;
	end
end

result <= accumulator;

endmodule